home *** CD-ROM | disk | FTP | other *** search
- /************************************************************************/
- /* Purpose..: Device Driver / DA Entry point */
- /* Input....: see Inside Mac */
- /* Return...: Depends on message */
- /************************************************************************/
- short main(CntrlParam *paramBlock,DCtlPtr devCtlEnt,short dispatch)
- {
- //
- // Here A4 is already setup to point to our data segment. There is no need
- // to call long oldA4=SetCurrentA4();/SetA4(oldA4); as in code resources.
- //
- // However you have to still have to use "#include <SetupA4.h>;RememberA4();..."
- // when using callback functions.
- //
- switch(dispatch)
- {
- case 0: break; // Open
- case 1: break; // Prime return 1 if async request cannot be completed right away
- case 2: break; // Control return 1 if async request cannot be completed right away
- case 3: break; // Status return 1 if async request cannot be completed right away
- case 4: break; // Close
- }
- return 0;
- }
-